package com.jml.controller;

import java.util.Date;

import com.jml.service.impl.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.jml.entity.OrderEntity;
import com.jml.mapper.OrderMapper;



@RestController
public class OrderController {

    @Autowired
    private OrderService orderService;

    @RequestMapping("/updateOrder")
    public String updateOrder(int age) {
        int result = orderService.updateOrder(age);
        return "1";
    }

    @RequestMapping("/insertOrder001")
    public String insertOrder001(int age) throws InterruptedException {

        return  orderService.insertOrder001(age);
    }
}
